package com.renjiyue;

import com.renjiyue.Dao.UserDaoMySQLImpUI;
import com.renjiyue.Dao.UserDaoOracleImpI;
import com.renjiyue.Service.UserServiceImpI;
import com.renjiyue.Service.UsrService;
import org.junit.Test;


public class test01 {
    @Test
    public void test03(){
        UserServiceImpI userServiceImpI = new UserServiceImpI();
        userServiceImpI.setUserDao(new UserDaoMySQLImpUI());
        userServiceImpI.getUser();
        //实现Oracle
        userServiceImpI.setUserDao(new UserDaoOracleImpI());
        userServiceImpI.getUser();
    }
    @Test
    public void test02(){
        UsrService service = new UserServiceImpI();
        service.getUser();
    }
}
